export const tree = [
	{
		label: '一级 1',
		children: [{
			label: '二级 1-1',
			children: [{
				label: '三级 1-1-1'
			}]
		}]
	}, {
		label: '一级 2',
		children: [{
			label: '二级 2-1',
			children: [{
				label: '三级 2-1-1'
			}]
		}, {
			label: '二级 2-2',
			children: [{
				label: '三级 2-2-1'
			}]
		}]
	}, {
		label: '一级 3',
		children: [{
			label: '二级 3-1',
			children: [{
				label: '三级 3-1-1'
			}]
		}, {
			label: '二级 3-2',
			children: [{
				label: '三级 3-2-1'
			}]
		}]
	}
]

export const tableData = [
	{
		id: 1,
		customer: '南京某机床有限公司',
		workshop: 'M330.2',
		beltline: 'M330.2',
		model: 'M330.2',
		order: 'M330.2',
		system: 'M330.2',
		date: '2016-05-04',
		status: '1',
		mark: '电力故障'
	}, 
	{
		id: 2,
		customer: '南京某机床有限公司',
		workshop: 'M330.2',
		beltline: 'M330.2',
		model: 'M330.2',
		order: 'M330.2',
		system: 'M330.2',
		date: '2016-05-04',
		status: '2',
		mark: '电力故障'
	},
	{
		id: 3,
		customer: '南京某机床有限公司',
		workshop: 'M330.2',
		beltline: 'M330.2',
		model: 'M330.2',
		order: 'M330.2',
		system: 'M330.2',
		date: '2016-05-04',
		status: '3',
		mark: '电力故障'
	},
]

export const servoData = [
	{
		id: 1,
		servo: 'X',
		coordinate: '134',
		load: '35'
	}, 
	{
		id: 2,
		servo: 'Y',
		coordinate: '134',
		load: '35'
	},
	{
		id: 3,
		servo: 'Z',
		coordinate: '134',
		load: '35'
	},
] 

export const axisData = [
	{
		id: 1,
		axis: 'S1',
		speed: '134',
		times: '26%',
		load: '35'
	}, 
	
] 

export const workshopData = [
	{
		id: 1,
		title: '机加车间1',
		list: [
			{
				id: 1,
				name: '实时状态分布',
				chaOpt: {
					tooltip : {
						trigger: 'item',
						formatter: "{a} <br/>{b} : {c} ({d}%)"
					},
					legend: {
						orient: 'vertical',
						left: 'left',
						data: ['加工','停机外','停机内','关机','搜索引擎','断开','故障']
					},
					series : [
						{
							name: '实时状态分布',
							type: 'pie',
							radius : '55%',
							center: ['50%', '60%'],
							data:[
								{value:335, name:'加工'},
								{value:310, name:'停机外'},
								{value:234, name:'停机内'},
								{value:135, name:'关机'},
								{value:135, name:'搜索引擎'},
								{value:1548, name:'断开'},
								{value:1548, name:'故障'},
							],
							itemStyle: {
								emphasis: {
									shadowBlur: 10,
									shadowOffsetX: 0,
									shadowColor: 'rgba(0, 0, 0, 0.5)'
								}
							}
						}
					]
				}
			},
			{
				id: 2,
				name: '当前状态统计',
				chaOpt: {
					tooltip : {
						trigger: 'item',
						formatter: "{a} <br/>{b} : {c} ({d}%)"
					},
					legend: {
						orient: 'vertical',
						left: 'left',
						data: ['加工','停机外','停机内','关机','搜索引擎','断开','故障']
					},
					series : [
						{
							name: '实时状态分布',
							type: 'pie',
							radius : '55%',
							center: ['50%', '60%'],
							data:[
								{value:335, name:'加工'},
								{value:310, name:'停机外'},
								{value:234, name:'停机内'},
								{value:135, name:'关机'},
								{value:135, name:'搜索引擎'},
								{value:1548, name:'断开'},
								{value:1548, name:'故障'},
							],
							itemStyle: {
								emphasis: {
									shadowBlur: 10,
									shadowOffsetX: 0,
									shadowColor: 'rgba(0, 0, 0, 0.5)'
								}
							}
						}
					]
				}
			},
			{
				id: 3,
				name: '当前机床作业状态分布',
				chaOpt: {
					xAxis: {
						type: 'category',
						data: ['正常进度', '稍落后', '严重落后', '无作业']
					},
					yAxis: {
						type: 'value'
					},
					series: [{
						data: [120, 200, 150, 80],
						type: 'bar'
					}]
				}
			},
		]
	},
	{
		id: 2,
		title: '机加车间2',
		list: [
			{
				id: 1,
				name: '实时状态分布',
				chaOpt: {
					tooltip : {
						trigger: 'item',
						formatter: "{a} <br/>{b} : {c} ({d}%)"
					},
					legend: {
						orient: 'vertical',
						left: 'left',
						data: ['加工','停机外','停机内','关机','搜索引擎','断开','故障']
					},
					series : [
						{
							name: '实时状态分布',
							type: 'pie',
							radius : '55%',
							center: ['50%', '60%'],
							data:[
								{value:335, name:'加工'},
								{value:310, name:'停机外'},
								{value:234, name:'停机内'},
								{value:135, name:'关机'},
								{value:135, name:'搜索引擎'},
								{value:1548, name:'断开'},
								{value:1548, name:'故障'},
							],
							itemStyle: {
								emphasis: {
									shadowBlur: 10,
									shadowOffsetX: 0,
									shadowColor: 'rgba(0, 0, 0, 0.5)'
								}
							}
						}
					]
				}
			},
			{
				id: 2,
				name: '当前状态统计',
				chaOpt: {
					tooltip : {
						trigger: 'item',
						formatter: "{a} <br/>{b} : {c} ({d}%)"
					},
					legend: {
						orient: 'vertical',
						left: 'left',
						data: ['加工','停机外','停机内','关机','搜索引擎','断开','故障']
					},
					series : [
						{
							name: '实时状态分布',
							type: 'pie',
							radius : '55%',
							center: ['50%', '60%'],
							data:[
								{value:335, name:'加工'},
								{value:310, name:'停机外'},
								{value:234, name:'停机内'},
								{value:135, name:'关机'},
								{value:135, name:'搜索引擎'},
								{value:1548, name:'断开'},
								{value:1548, name:'故障'},
							],
							itemStyle: {
								emphasis: {
									shadowBlur: 10,
									shadowOffsetX: 0,
									shadowColor: 'rgba(0, 0, 0, 0.5)'
								}
							}
						}
					]
				}
			},
			{
				id: 3,
				name: '当前机床作业状态分布',
				chaOpt: {
					xAxis: {
						type: 'category',
						data: ['正常进度', '稍落后', '严重落后', '无作业']
					},
					yAxis: {
						type: 'value'
					},
					series: [{
						data: [120, 200, 150, 80],
						type: 'bar'
					}]
				}
			},
		]
	},
]